Allefant 4
http://allefant.sf.net/Allefant4

A Speedhack 2005 entry
http://www.speedhack.allegro.cc/2005

**************
* Quickstart *
**************

The controls are by default:

joypad left: cursor left: move left
joypad right: cursor right: move right
joypad up: cursor up: jump

button A: right control: use
button B: right shift: select

There is one way to win the game, which is divided into two ways to play,
both of which together form the way to win: You have to survive. And survival is
possible in a violent, or in peaceful way. If you use weapons, you need to kill
all Allegators. Else, you need to collect all the code fragments.

Use the select button to select either one of 3 tools or 3 weaons. Use the use
button to use a tool or weapon.

To survive, don't die. You die from starvation, thirst, falling down, or getting
killed.

Collect burgers, coke bottles and ammo crates. Burgers and coke bottles give you
health. Ammo crates give you ammo. Burgers also give you food, and coke bottles
water. You can only build bridges if you are not hungry. And if you are thirsty,
you will start loosing health.

*********
* Story *
*********

And so it be. The 4th adventure of the Allefant has begun.

As you remember, in Allefant1, Allefant had to leave the Isle of Allegro on his
small boat and explore strange other islands and defeat lots of allegators and
other fiends of land, water and air, to finally meat the arch vile, the red
dragon. In Allefant2, he had to win a mad boating race against the Allegators,
to save his library yet again. In Allefant3, he had to go deep down into the
caves below the isle and win the craziest of battles against flying allegators,
time dragons and the copy and paste devil.

You thought, the Allegators finally would give up now, after being defeated
three times? And you thought, the battles couldn't get fiercer than they were?
You're wrong both times. Just when the Allefant thought he could finally retreat
peacefully to his isle, the worst attack by the Allegators ever started. This
time, it is about his sheer survival - no longer do they try to merely steal his
code, no, they try to bring him down to his end once and for all. Aided by the
evil Allekans, they this time brought weapons of mass destruction with them,
ready to blow away the whole isle.

The Allefant has only two choices now - forget his peaceful nature, and strike
back, blasting all the Allegators to smitherness once and forever in return. Or
try to survive by hiding in secret tunnels where they can never find him, wait
until they give up their cruel endeavor and yet saving the library.

The way before him is a dichotomy. Stay pieceful, or not. And it is a hard
decision, seeing how it involves his survival, no matter which way to choose.

*************
* Speedhack *
*************

Rules

- Survival
  The game is all about survival, and nothing else. And it will be hard to
  survive, if not impossible.

- Classic

  It all runs in 320x200 mode with 16 colors.
  Except for the Allegro GUI, I even did the controls rule as well:
  joypad (left,right,jump), A button (use), B button (select).

- Randomness

  Well, the level, enemies, items, start position.. about anything you can
  think of is random.

- World map

  There's a world map in the top left corner, showing the whole world. As stated
  in the rules, the rule doesn't mean to display a globe of the world, but
  instead do it just like I did.

- Dichotomy

  The whole game resolves around a dichotomy of peace or violence. You can win
  in two ways, and no other, and they are jointly exhaustive conflicting
  opposites. Don't say you read up until here and missed both the quickstart and
  story sections..

- Bonus rule

  Ha, I certainly don't use a cheap way out. (Actually, networking would have
  been harder than any other rule :P Luckily, it just is the bonus rule.)

****************
* Instructions *
****************

You need DUMB (http://dumb.sf.net) to compile it.

Compile: gcc src/*.c algif/*.c -laldmb -ldumb -lalleg

*********
* Hints *
*********

- The violent way to win is when there are no more Allegators left. You don't
  need to kill any Allikans or Allopuses.

- The peaceful way to win is to collect all the code fragments, without using
  any weapons.

- Items may be buried deep under the earth. There are always at least three
  burgers, three cokes, and three ammo crates in the game at any given time.

- Weapons need ammo, bridges need food - but you can dig and tunnel for free.

- You may be able to ride on an Allekan to cross a gap.

- You can only pick up food, coke or ammo if you have less than 5 of each.
  Health doesn't affect this.

- You can never waste food, coke or ammo. You really can pick up almost 6 of
  each, just only 5 are displayed at most.

- Watch the status display. If you run out of water, it will be bad for your
  health, so drink in time.

- In the violent path, if any enemies start getting low health, a health bar
  appears above them. They do not regenerate.

- Explosions can flip you around and also alter the course of projectiles, be
  careful.

- Your own projectiles don't hit you. But explosions they cause do. The same
  applied to enemies - they won't hit themselves, but are still hurt by
  explosions.

****************
* Contributors *
****************

- Allefant
  code, artwork

- Louis Gorenfeld (I think)
  The guy in the copyright of the .it I used. It's actually the music of
  Fruitworm. But when I tried to make new music, I had to realize that:
  * soundtracker didn't work anymore
  * cheestracker didn't work anymore
  * simsynth didn't work anymore
  Funnily enough, all of different reasons. Soundtracker only can use OSS, but
  my kernel only supports Alsa. Cheesetracker crashes on startup. The newest
  version of Wine refuses to startup SimSynth all of a sudden. Oh well.
  So, now I simply took an existing .it. Of course it also sounds much better
  than anything I could have done :)

  All the samples are also old ones I simply re-used, generated with simsynth.
  The font is from AGUP, but doesn't look better than the Allegro font anyway.

**********
* Thanks *
**********

This was a lot of fun, even if my entry turned out much too chaotic for my likes
in the end. I wish to thank the following people:

Shawn Hargreaves - allegro author
Arron Shutt - speedhack inventor
Matthew Leverton - speedhack organizator
All the other participants - so I got to read all the progress logs :)
Everyone else on allegro.cc and #allegro - too many to list

***********
* License *
***********

All files are released under the GPL license. See COPYING.
